#ifndef USART_TASK_H
#define USART_TASK_H

#include "main.h"
#include <stdio.h>
#include "usart.h"

int fputc(int ch, FILE *f);
int fgetc(FILE *f);

extern uint8_t rxBuffer_main;
extern uint8_t rxBuffer_screen;

void ResetSystem(void);
uint8_t findMostFrequent(uint8_t *array, uint8_t size1);

typedef struct
{
  float ch_data[2];
	uint8_t  tail[4];
} Vofa_data_m_2;

typedef struct
{
  float ch_data[4];
	uint8_t  tail[4];
} Vofa_data_m_4;

typedef struct
{
  float ch_data[8];
	uint8_t  tail[4];
} Vofa_data_m_8;

extern Vofa_data_m_2 Vofa_data_2;
extern Vofa_data_m_4 Vofa_data_4;
extern Vofa_data_m_8 Vofa_data_8;

void Vofa_Send_Data2(float data1, float data2);
void Vofa_Send_Data4(float data1, float data2,float data3, float data4);
void Vofa_Send_Data8(float data1, float data2,float data3, float data4,float data5, float data6,float data7, float data8);

#endif
